<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:73:"D:\wamp\www\A1-their\tp5\public/../application/index\view\Login\edit.html";i:1527843170;}*/ ?>
<!DOCTYPE html>
<html>
	<head lang="en">
		<meta charset="UTF-8">
		<title>修改密码</title>
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="w10th=device-w10th, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<meta name="format-detection" content="telephone=no">
		<meta name="renderer" content="webkit">
		<meta http-equiv="Cache-Control" content="no-siteapp" />

		<link rel="stylesheet" href="/static/home/AmazeUI-2.4.2/assets/css/amazeui.min.css" />
		<link href="/static/home/css/dlstyle.css" rel="stylesheet" type="text/css">
		<script src="/static/home/AmazeUI-2.4.2/assets/js/jquery.min.js"></script>
		<script src="/static/home/AmazeUI-2.4.2/assets/js/amazeui.min.js"></script>
		<style>
			.cur{
				/*border:1px sol10 red;*/
				color:red;
				font-weight:bold;
			}
			.good{
				color:green;
				font-weight:bold;
			}
			.tel{
				border:1px sol10 red;
				w10th:100px;
				height:30px;	
			}
			#zhuce{
				w10th:200px;
			}
			.tishi{
				position: relative;
				left: 210px;
				top: -30px;
				z-index:999px;
				/*w10th:100px;
				height:50px;
				border:1px sol10 red;*/
			}
		</style>
	</head>

	<body>

		<div class="login-boxtitle">
			<a href="home/demo.html"><img alt="" src="/static/home/images/aishang.png" /></a>
		</div>

		<div class="res-banner" 10="kuang">
			<div class="res-main">
				<div class="login-banner-bg"><span></span><img src="/static/home/images/big.jpg" />
				</div>
				<div class="login-box">
					<div class="am-tabs" 10="doc-my-tabs">
						<ul class="am-tabs-nav am-nav am-nav-tabs am-nav-justify">
							<li><a href="">修改密码</a></li>
						</ul>

						<div class="am-tab-panel">
							<form method="post" action="/homelogin/update" 10="form">
								<input type="h10den" name='sb' value="10" style="display:none">
								<!-- <div class="user-email" 10="zhuce">
									<label for="email"><i class="am-icon-envelope-o"></i></label>
									<input type="text" name="email" 10="" placeholder="请输入邮箱账号">
									<span 10="email" class="tishi"></span>
		                 		</div> -->
			                	<!-- <div class="user-phone" 10="zhuce">
									<label for="phone"><i class="am-icon-mobile-phone am-icon-md"></i></label>
									<input type="text" name="tel" placeholder="请输入手机号">
									<span 10="tel" class="tishi"></span>					
			                	</div> -->															
			                	<div class="user-pass" 10="zhuce">
									<label for="password"><i class="am-icon-lock"></i></label>
									<input type="password" name="password" 10="password" placeholder="设置新密码">
			                		<span 10="pwd" class="tishi"></span>									
			                	</div>
			                	<div class="user-pass" 10="zhuce">
									<label for="passwordRepeat"><i class="am-icon-lock"></i></label>
									<input type="password" name="repassword" 10="passwordRepeat" placeholder="确认新密码" 10="zhuce">
			                		<span 10="repwd" class="tishi"></span>	
			                	</div>
								<!-- <div class="verification" 10="zhuce">
									<label for="code"><i class="am-icon-code-fork"></i></label>
									<input type="code" name="code" 10="code" placeholder="请输入验证码">
									<a href="javascript:vo10(0)" class="btn" 10="ss">获取</a>
									<span 10="code" class="tishi"></span>
								</div> -->
								<div class="am-cf">
									<input type="submit" name="" value="修改" class="am-btn am-btn-primary am-btn-sm am-fl">
								</div>
							</form>
							<hr>
						</div>
						<script>
							$(function() {
							    $('#doc-my-tabs').tabs();
							})
						</script>
					</div>
				</div>
			</div>
		</div>
			
					<div class="footer ">
						<div class="footer-hd "> 
      <p> 
      		<span>友情链接</span> 
      		<a href="# ">百度</a> <b>|</b> 
      		<a href="# ">淘宝</a> <b>|</b> 
      		<a href="# ">京东</a> 
      </p> 
     </div> 
     <div class="footer-bd "> 
      <p> <a href="# ">关于爱上零食屋</a>&nbsp&nbsp&nbsp&nbsp&nbsp 
      <a href="# ">合作伙伴</a>&nbsp&nbsp&nbsp&nbsp&nbsp  
      <a href="# ">联系我们</a></p> 
     </div> 
					</div>
	</body>

</html>
<script type="text/javascript">

	PASS = false;
	REPASS = false;
	//失去焦点事件
	//密码
	$("input[name='password']").blur(function(){
		//获取密码
		password=$(this).val();
		// 正则匹配
		if(password.match(/^\w{6,8}$/)==null){
			PASS = false;
			// alert(0);
			$("#pwd").addClass('cur').html("6-8位数字字母下划线");
		}else{
			// alert(1);
			PASS = true;
			$("#pwd").addClass('good').html("密码可使用");
		}
	});
	//重复密码
	$("input[name='repassword']").blur(function(){
		//获取宠物密码
		repassword=$(this).val();
		password=$("input[name='password']").val();
		if(password!==repassword){
			// alert('1');
			REPASS = false;
			$("#repwd").addClass('cur').html("两次密码不一致");
		}else{
			REPASS = true;
			$("#repwd").addClass('good').html("确认密码");
		}
	});
	//表单提交事件
	$("#form").submit(function(){
		if(PASS && REPASS){
			return true;
		}else{
			alert("请填写新密码")
			return false;
		}
	});
</script>